package CreationalPatterns.Builder;

import CreationalPatterns.Builder.builder.CarBuilder;
import CreationalPatterns.Builder.product.Car;
import utils.XMLUtil;

public class Client {
    public static void main(String[] args) {
//        Director director = new Director();
//        SportsCarBuilder sportsCarBuilder = new SportsCarBuilder();
//        director.buildSportsCar(sportsCarBuilder);
//        Car sportsCar = sportsCarBuilder.build();
//        System.out.println(sportsCar);
//
//        SuvBuilder suvBuilder = new SuvBuilder();
//        director.buildSuv(suvBuilder);
//        Car suv = suvBuilder.build();
//        System.out.println(suv);

        CarBuilder carBuilder = (CarBuilder) XMLUtil.getBean("Builder");
        Car car = carBuilder.build();
        System.out.println(car);
    }
}
